package physics;

public class Vector 
{
	
	double x, y;
	public Vector()
	{
		x = 0;
		y = 0;
	}
	
	public Vector(double x, double y)
	{
		this.x = x;
		this.y = y;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}
	
	public void setCoordinates(double x, double y)
	{
		this.x = x;
		this.y = y;
	}
	
	public void vectorAddition(Vector vectToAdd)
	{
		x += vectToAdd.getX();
		y += vectToAdd.getY();
	}
	
	public void reverseX()
	{
		x = x * (-1);
	}
	
	public void reverseY()
	{
		y = y * (-1);
	}
	
	public void multScalarToY(double c)
	{
		y = y * c;
	}
	
	public void multScalarToX(double c)
	{
		x = x * c;
	}
	

}
